<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>

<body>
    <div id="app">
        <div v-show="index > 0">
            <button @click="index--">上一页</button>
        </div>
        <div>
            <img :src="images[index]">
        </div>
        <div v-show="index < images.length - 1">
            <button @click="index++">下一页</button>
        </div>

    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <script>
        const app = new Vue(
            {
                el: "#app",
                data: {
                    images:
                        ['imgs/11-00.gif', 'imgs/11-01.gif', 'imgs/11-02.gif', 'imgs/11-03.gif', 'imgs/11-04.png', 'imgs/11-05.png'],
                    index: 0
                }
            }
        )
    </script>
</body>

</html>